/* UTF8 Encoding */
/*-----------------------------------------------------------------------
|                            FILE DESCRIPTION                           |
-----------------------------------------------------------------------*/
/*----------------------------------------------------------------------
  - File name     : bsp_wifi.h
  - Author        : liuzhihua (liuzhihuawy@163.com)
  - Update date   : 2024.04.24
  - Brief         : board support package for wifi module
  - Version       : v0.1
-----------------------------------------------------------------------*/
/*-----------------------------------------------------------------------
|                               UPDATE NOTE                             |
-----------------------------------------------------------------------*/
/**
  * Update note:
  * ------------   ---------------   ----------------------------------
  *     Date            Author                      Note
  * ------------   ---------------   ----------------------------------
  *  2024.04.24       liuzhihua                  Create file          
***/

#ifndef BSP_WIFI_H__
#define BSP_WIFI_H__


/*-----------------------------------------------------------------------
|                               INCLUDES                                |
-----------------------------------------------------------------------*/
#include "esp_01s_mqtt.h"

#ifdef  __cplusplus
    extern "C" {
#endif
/*-----------------------------------------------------------------------
|                                DEFINES                                |
-----------------------------------------------------------------------*/
extern esp_01s_mqtt_t wifi_module;




/*-----------------------------------------------------------------------
|                                  API                                  |
-----------------------------------------------------------------------*/
int bsp_wifi_module_init(void);
void test_wifi_module(esp_01s_mqtt_t *pesp01s);
int bsp_wifi_test_sap(esp_01s_mqtt_t *pesp01s, int *state);
int bsp_wifi_test_jap(esp_01s_mqtt_t *pesp01s, int *state);
int bsp_wifi_module_callback(uint8_t *pdata, uint16_t size);
int bsp_wifi_test_request(esp_01s_mqtt_t *pesp01s, int *state);

#ifdef __cplusplus
	}
#endif
#endif
